﻿@{
    ViewBag.Title = "取回密码第一步";
    ViewBag.Menu = "step1";
    Layout = "~/Views/Shared/_FindPasswordLayout.cshtml";
}

@section HeadJavaScript{
    <script type="text/javascript" src="/Scripts/angular/base/angular.min.js"></script>
    <!--[if (IE 6)|(IE 7)]><script type="text/javascript" src="/Scripts/angular/base/json2.js"></script><![endif]-->
    <script type="text/javascript" src="/Scripts/angular/js/getpassword.js"></script>
    <script type="text/javascript" src="/Scripts/angular/base/angular.autoload.js"></script>
}
<div class="pos"><img src="~/images/images/pay_dian.jpg" /> <a href="#">会员中心</a> - 取回密码账户</div>
<div class="form1" style="background:none;">   
    <form class="form1 st_form" name="form" on-submit="submit()" onsubmit="return false;" ng-controller="Ctrl" ng-init="load({
            name:{msg:'由6~16位位字母或数字组成,不区分大小写',required:'请填写账号（6~16位字母或数字组成，不区分大小写）',minlength: '账号长度为6-16位字符', maxlength: '只能使用6-16位字母和数字', pattern: '格式错误！！只能由数字或者字母构成，且首位为字母', contains: '该账号不存在！',failed:'检测账号失败，请联系我们',success:true},
            verifyvalue: { msg:'请输入图片显示的数字或字母',error: '请正确填写验证码',success:true},
            submit:{error:'系统异常，请联系我们',verifycode:'验证码错误',account:'对不起，您输入的账号有误',identity:'服务器繁忙，请稍后再试'}
            });
            name.url='/account/contains/r/Default';
            submit.url='/account/newpwdidentity/r/Default';
            redirect.url='/usercenter/step2/r/Default/';
            ">  	
    <table class="tab1" width="720">
        <tr>
            <td width="115"><span class="txtr">友为通行证：<strong class="orange">*&nbsp;</strong></span> </td>
            <td width="270">
                <input type="text" class="text270" name="name" ng-init="name.input()" on-focus="name.input()" on-blur="name.validate();" ng-model="name.value" ng-pattern="/^[a-zA-Z0-9]*$/" ng-minlength="6" ng-maxlength="16" required/>
            </td>
            <td>
                <span class="error" ng-show="name.error" style="display:none;">{{name.error}}</span>
                <span ng-show="!name.error&&!name.success&&name.msg" ng-bind-template="{{name.msg}}"></span>
                <span class="green" ng-show="name.success" style="display:none;">&nbsp;</span>
            </td>
        </tr>
        <tr>
            <td width="115"><span class="txtr">验证码：<strong class="orange">*&nbsp;</strong></span> </td>
            <td width="270">
                <input type="text" class="text270" name="verifyvalue" ng-init="verifyvalue.input()" on-focus="verifyvalue.input()" on-blur="verifyvalue.validate();" ng-model="verifyvalue.value"  ng-minlength="4" ng-maxlength="4"  ng-pattern="verifyvalue.pattern" required/>
             
            </td>
            <td>
                 <span class="error" ng-show="verifyvalue.error" style="display:none;">{{verifyvalue.error}}</span>
                 <span ng-show="!verifyvalue.error&&!verifyvalue.success&&verifyvalue.msg" ng-bind-template="{{verifyvalue.msg}}"></span>
                 <span class="green" ng-show="verifyvalue.success" style="display:none;">&nbsp;</span> 
            </td>
        </tr>
        <tr>
            <td><span class="txtr">验证码图片：<strong class="orange">*&nbsp;</strong></span> </td>
            <td>
                <img ng-src="{{verifycode.value}}" ng-click="verifycode.newdefault()" style="border:1px solid #000;"/>
                <a ng-click="verifycode.newdefault()" class="fresh">点击图片刷新验证码</a>
            </td>
            <td>     	
            </td>
        </tr>      
        <tr style="display:none" ng-show="submit.error">
            <td></td>
            <td colspan="2">
                <span class="error" >{{submit.error}}</span>
            </td>
        </tr>
        <tr>
            <td></td>
            <td align="center">
                <div style="height:50px; margin-top:15px;"><input type="submit" value="" class="find_xyb" /></div>
            </td>
            <td></td>
        </tr>
    </table>
    </form>
</div>




